On Template-Based Inference of Rich Invariants in Leon

نویسندگان

  • Ravichandhran Madhavan
  • Viktor Kuncak
چکیده

We present an approach for inferring rich invariants involving user-defined recursive functions over numerical and algebraic data types. In our approach, the developer provides the desired shape of the invariant using a set of templates. The templates are quantifier-free affine predicates with unknown coefficients. We also provide an enumeration based strategy for automatically inferring some of the templates. We present a scalable counter-example driven algorithm that finds the unknown coefficients in templates and thus computes expressive inductive invariants. Our algorithm incrementally solves a set of quantified constraints involving recursive functions and data structures. We discuss several optimizations that make the approach scale to complex programs and present an empirical evaluation. Our implementation proves correctness properties as well as symbolic bounds on running times of recursive programs. For example, the implementation establishes that the time taken to insert into a red-black tree is bounded by the logarithm of its size.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Splice Graphs and their Vertex-Degree-Based Invariants

Let G_1 and G_2 be simple connected graphs with disjoint vertex sets V(G_1) and V(G_2), respectively. For given vertices a_1in V(G_1) and a_2in V(G_2), a splice of G_1 and G_2 by vertices a_1 and a_2 is defined by identifying the vertices a_1 and a_2 in the union of G_1 and G_2. In this paper, we present exact formulas for computing some vertex-degree-based graph invariants of splice of graphs.

متن کامل

Type-Based Data Structure Verification

We present a refinement type-based approach for the static verification of complex data structure invariants. Our approach is based on the observation that complex data structures are often fashioned from two elements: recursion (e.g., lists and trees), and maps (e.g., arrays and hash tables). We introduce two novel type-based mechanisms targeted towards these elements: recursive refinements an...

متن کامل

Differential Invariants under Gamma Correction

This paper presents invariants under gamma correction and similarity transformations. The invariants are local features based on differentials which are implemented using derivatives of the Gaussian. The use of the proposed invariant representation is shown to yield improved correlation results in a template matching scenario.

متن کامل

Notes on some Distance-Based Invariants for 2-Dimensional Square and Comb Lattices

We present explicit formulae for the eccentric connectivity index and Wiener index of 2-dimensional square and comb lattices with open ends. The formulae for these indices of 2-dimensional square lattices with ends closed at themselves are also derived. The index for closed ends case divided by the same index for open ends case in the limit N →&infin defines a novel quantity we call compression...

متن کامل

A human reproductive approach to the study of infertility in chimpanzees: An experience at Leon’s Zoological Park, Mexico

Great apes are mammals close to humans in their genetic, behavioral, social and evolutionary characteristics and new genomic information is revolutionizing our understanding of evolution in primates. However, all these species are endangered. While there are many global programs to protect these species, the International Union for Conservation of Nature (IUCN) projects that in a near future th...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013